<template>
  <div id="app">
    <el-button :plain="true" @click="open">请点击我！</el-button>
    <el-button :plain="true" @click="sayHello">与后端交互！</el-button>
  </div>
</template>

<script>
  const {hello} = require('./network/get')
  export default {
    name: "index",
    methods:{
      open() {
        this.$message("开始你的计算器布局");
      },
      sayHello(){
        hello().then((res)=>{
          console.log(res);
        })
      }
    }

  }
</script>

<style>

</style>
